package iechecs;

import java.util.Iterator;
import java.util.Map.Entry;

public class AIterator<A, B>
{

    private Iterator<Entry<A, B>> it;
    private AFonction<A, B> AF;

    public AIterator(AFonction<A, B> AF)
    {
        this.AF = AF;
        this.it = this.AF.iterator();
    }

    public Entry<A, B> next()
    {
        return it.next();
    }

    public Entree<A, B> suivant()
    {
        return AF.getEntree(next());
    }

    public boolean hasNext()
    {
        return it.hasNext();
    }
}
